/* 首页内容的样式 */
/* banner */
.banner {
  height: 500px;
  background-color: #f5f5f5;
}
.banner .wrapper {
  position: relative;
  height: 500px;
  background-color: pink;
  overflow: hidden;
}

/* 图片 */
.banner .pic {
  display: flex;
  /* flex布局,父级宽度不够,子级被挤小,不想被挤小,增大父级尺寸 */
  width: 3720px;
}

/* 侧导航 */
.subnav {
  position: absolute;
  left: 0;
  top: 0;
  width: 250px;
  height: 500px;
  background-color: rgba(0, 0, 0, 0.42);
}
.subnav li {
  display: flex;
  justify-content: space-between;
  padding-left: 30px;
  padding-right: 12px;
  height: 50px;
  /* background-color: pink; */
  line-height: 50px;
  color: #fff;
  cursor: pointer;
}
/* a所有都是小子,分类都是大字 */
.subnav li a {
  margin-right: 5px;
  font-size: 14px;
  color: #fff;
}
.subnav li .classify {
  margin-right: 14px;
  font-size: 16px;
}
.subnav li .iconfont {
  font-size: 14px;
}
.subnav li:hover {
  background-color: #00be9a;
}

/* 圆点指示器 */
.banner ol {
  position: absolute;
  bottom: 17px;
  right: 16px;
  display: flex;
}
.banner ol li {
  margin-left: 8px;
  width: 22px;
  height: 22px;
  /* background-color: pink; */
  border-radius: 50%;
  cursor: pointer;
}
.banner ol i {
  display: block;
  margin: 4px;
  width: 14px;
  height: 14px;
  background-color: rgba(255, 255, 255, 0.5);
  border-radius: 50%;
}
/* 选中: li半透明 i白色 */
.banner ol .current {
  background-color: rgba(255, 255, 255, 0.5);
}
.banner ol .current i {
  background-color: #fff;
}

/* 新鲜好物 */
/* 标题 -- 公共样式 */
.title {
  display: flex;
  justify-content: space-between;
  margin-top: 40px;
  margin-bottom: 30px;
  height: 42px;
  /* background-color: pink; */
}
.title .left {
  display: flex;
}
.title .left h3 {
  margin-right: 35px;
  font-size: 30px;
}
.title .left p {
  /* 侧轴对齐方式 */
  align-self: flex-end;
  color: #a1a1a1;
}
.title .right .more {
  line-height: 42px;
  color: #a1a1a1;
}
.title .right .more .iconfont {
  margin-left: 10px;
}
/* 好物内容 -- 公共样式 */
.bd ul {
  display: flex;
  justify-content: space-between;
}
.bd li {
  width: 304px;
  height: 404px;
  background-color: #eef9f4;
}
.bd li .pic {
  width: 304px;
  height: 304px;
}
.bd li .txt {
  text-align: center;
}
.bd li h4 {
  margin-top: 18px;
  margin-bottom: 8px;
  font-size: 20px;
}
.goods .bd p {
  font-size: 18px;
  color: #aa2113;
}
.goods .bd p span {
  margin-left: 3px;
  font-size: 22px;
}

/* 人气推荐 */
.recommend .bd li {
  background-color: #fff;
}
.recommend .bd p {
  color: #a1a1a1;
}

/* 热门品牌 */
.brand {
  margin-top: 60px;
  height: 468px;
  background-color: #f5f5f5;
}
.brand .wrapper {
  overflow: hidden;
  height: 468px;
  /* background-color: pink; */
}
.brand .title {
  position: relative;
  margin-bottom: 40px;
}
.brand .button {
  position: absolute;
  right: 0;
  bottom: -25px;

  /* 让a在一行显示,并且宽高生效 */
  display: flex;
}
.brand .button a {
  margin-left: 12px;
  width: 20px;
  height: 20px;
  text-align: center;
  line-height: 20px;
  color: #fff;
}
.brand .button .prev {
  background-color: #ddd;
}
.brand .button .next {
  background-color: #00be9a;
}
.brand .bd li {
  width: 244px;
  height: 306px;
}

/* 生鲜 */
.fresh .title {
  margin-top: 60px;
  margin-bottom: 20px;
}
.title .right {
  display: flex;
}
.title .right ul {
  display: flex;
  margin-top: 10px;
  margin-right: 58px;
}
.title .right ul a {
  display: block;
  margin-left: 6px;
  padding: 0 7px;
  height: 20px;
  /* background-color: pink; */
  line-height: 20px;
}
.title .right ul .active {
  background-color: #00be9a;
  color: #fff;
}
/* 生鲜内容 */
.content {
  display: flex;
  justify-content: space-between;
}
.content .left {
  width: 248px;
  height: 610px;
  background-color: pink;
}
.content .right {
  width: 968px;
  height: 610px;
  /* background-color: skyblue; */
}
.content .right ul {
  display: flex;
  /* 弹性盒子换行 */
  flex-wrap: wrap;
}
.content .right li {
  position: relative;
  /* 为了隐藏绿色cover */
  overflow: hidden;
  padding: 10px 21px 0;
  width: 242px;
  height: 305px;
  border: 2px solid #fff;
}
/* 产品内容 */
.content .pic {
  width: 200px;
  height: 180px;
}
.content .info {
  margin-top: 14px;
  margin-bottom: 5px;
  height: 60px;
  line-height: 19px;
}
.content .price {
  color: #af2f22;
}
.content .price span {
  margin-left: 5px;
  font-size: 22px;
}
/* 产品底部绿色区域 */
.content li .cover {
  position: absolute;
  left: 0;
  /* bottom: 0; */
  bottom: -86px;
  padding-top: 15px;
  width: 242px;
  height: 84px;
  background-color: #00be9a;
  text-align: center;
  color: #fff;
  transition: all 0.5s;
}
.content .cover p:first-child {
  font-size: 18px;
  cursor: pointer;
}
.content .cover p:nth-child(2) {
  margin: 3px auto 6px;
  width: 120px;
  height: 1px;
  background-color: rgba(255, 255, 255, 0.11);
}
.content .cover p:last-child,
.content .cover p:last-child .iconfont {
  font-size: 13px;
  cursor: pointer;
}
/* 鼠标悬停到li, 显示cover, 本质 -> 改变位置 */
.content .right li:hover .cover {
  bottom: 0;
}
.content .right li:hover {
  border: 2px solid #00be9a;
}

/* 最新专题 */
.topic {
  margin-bottom: 40px;
}
.topic .title {
  margin-top: 100px;
}
.topic-bd ul {
  display: flex;
  justify-content: space-between;
}
.topic-bd li {
  width: 405px;
  height: 355px;
  /* background-color: pink; */
}
.topic-bd .pic {
  position: relative;
  width: 405px;
  height: 288px;
}
.topic-bd .txt {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 15px;
  width: 405px;
  height: 67px;
  /* background-color: skyblue; */
  font-size: 14px;
  color: #666;
}
.topic-bd .txt .left {
  display: flex;
}
.topic-bd .txt .left p {
  margin-left: 20px;
}
.topic-bd .txt .left p:first-child i {
  color: #aa2113;
}
/* 定位区域 - 文字 */
.topic-bd .cover {
  position: absolute;
  left: 0;
  bottom: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 15px;
  width: 405px;
  height: 90px;
  /* 背景渐变 */
  background-image: linear-gradient(180deg, rgba(137,137,137,0.00) 0%, rgba(0,0,0,0.90) 100%);
}
.topic-bd .cover .left {
  color: #fff;
}
.topic-bd .cover .left h4 {
  margin-bottom: 6px;
  font-size: 20px;
}
.topic-bd .cover .right {
  padding: 0 7px;
  height: 25px;
  background-color: #fff;
  color: #aa2113;
  font-size: 15px;
}
.topic-bd .cover .right span {
  font-size: 18px;
}
.topic-bd .cover .right span:first-child {
  margin-right: 3px;
}